package org.atlantis.evnlib;

/**
 * Event的只读代理类。Event中的属性，是不能从外部访问的，而EventProxy具有Event的所有属性，但是可以从外部访问。
 * 
 * @author <a href="mailto:seenoevil.cn@gmail.com">李曦</a><br/>
 *         Created at: 2011-7-4 下午07:41:31
 */
public final class EventProxy {

	private Event event;

	EventProxy(Event event) {
		this.event = event;
	}

	public String getEventName() {
		return event.getEventDef().getEventName();
	}

	public int getFixedThreadSize() {
		return event.getEventDef().getFixedThreadSize();
	}

	public int getFlexThreadSize() {
		return event.getEventDef().getFlexThreadSize();
	}

	public int getQueueSize() {
		return event.getEventDef().getQueueSize();
	}
}
